<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="__PUBLIC__/Css/public.css"/>
</head>
<body>
<form method='post' action='{:U("Admin/Excel/upload")}' enctype='multipart/form-data'>
    <h3>导入Excel表：</h3><input  type='file' name='file_stu'/>
    <input type='submit'  value='导入' />
</form>

<form action="{:U('Admin/Excel/index')}" method="post">
    <h3>请选择学年</h3>
    <select name="school_year">
        <foreach name="sch_year" item="m" >
            <option value="{$m.l}-{$m.b}">{$m.l}-{$m.b}</option>
        </foreach>
    </select>
    <h3>请选择学期</h3>
    <select name="term">
        <option value="1">1</option>
        <option value="2">2</option>

    </select>
    <input type="submit" value="查询">

</form>

<table class="table">
    <tr>
        <th>成绩已倒入的班级</th>
        <th>学年</th>
        <th>学期</th>
        <th>操作</th>
    </tr>
    <foreach name="class" item="m" >
    <tr>
        <form action="{:U('Admin/Excel/delete')}" method="post">
        <td>{$m.class}<input type="hidden" value="{$m.class}" name="class"></td>
        <td>{$m.school_year}<input type="hidden" value="{$m.school_year}" name="school_year"></td>
        <td>{$m.term}<input type="hidden" value="{$m.term}" name="term"></td>
        <td><input type="submit" value="删除成绩"></td>
        </form>
    </tr>
    </foreach>
</table>
</body>
</html>